import './assets/styles/main.scss'

import { createApp } from 'vue'

import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate';

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

import App from './App.vue'
import router from './router'
import VueVirtualScroller from 'vue-virtual-scroller' // 引入虚拟滚动组件
import 'vue-virtual-scroller/dist/vue-virtual-scroller.css' // 引入虚拟滚动组件样式

const app = createApp(App)

const pinia = createPinia();
pinia.use(piniaPluginPersistedstate); // 注册持久化插件

app.use(pinia)
app.use(router)
app.use(ElementPlus)
app.use(VueVirtualScroller) // 注册虚拟滚动组件
app.mount('#app')
